package com.ruoyi.consume.mapper;

import java.util.List;

import com.ruoyi.consume.domain.PlugApplyTemporaryCon;

/**
 * 穴盘临时领用Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public interface PlugApplyTemporaryConMapper
{
    /**
     * 查询穴盘临时领用
     *
     * @param plugApplyTemporaryId 穴盘临时领用ID
     * @return 穴盘临时领用
     */
    public PlugApplyTemporaryCon selectPlugApplyTemporaryById(Long plugApplyTemporaryId);

    /**
     * 查询穴盘临时领用列表
     *
     * @param plugApplyTemporaryCon 穴盘临时领用
     * @return 穴盘临时领用集合
     */
    public List<PlugApplyTemporaryCon> selectPlugApplyTemporaryList(PlugApplyTemporaryCon plugApplyTemporaryCon);

    /**
     * 新增穴盘临时领用
     *
     * @param plugApplyTemporaryCon 穴盘临时领用
     * @return 结果
     */
    public int insertPlugApplyTemporary(PlugApplyTemporaryCon plugApplyTemporaryCon);

    /**
     * 修改穴盘临时领用
     *
     * @param plugApplyTemporaryCon 穴盘临时领用
     * @return 结果
     */
    public int updatePlugApplyTemporary(PlugApplyTemporaryCon plugApplyTemporaryCon);

    /**
     * 删除穴盘临时领用
     *
     * @param plugApplyTemporaryId 穴盘临时领用ID
     * @return 结果
     */
    public int deletePlugApplyTemporaryById(Long plugApplyTemporaryId);

    /**
     * 批量删除穴盘临时领用
     *
     * @param plugApplyTemporaryIds 需要删除的数据ID
     * @return 结果
     */
    public int deletePlugApplyTemporaryByIds(Long[] plugApplyTemporaryIds);

    /**
     * 更新库存量表
     *
     * @param plugApplyTemporaryCon 穴盘临时领用
     * @return 结果
     */
    public int updateAmount(PlugApplyTemporaryCon plugApplyTemporaryCon);

    /**
     * 更新领用状态
     *
     * @param plugApplyTemporaryId 穴盘临时领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long plugApplyTemporaryId);

    /**
     * 退回操作
     *
     * @param plugApplyTemporaryId 穴盘临时领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long plugApplyTemporaryId);
}
